﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace road2.Model
{
    public class Road : BaseRoadObj
    {
        private int _length;
        public int length
        {
            get { return _length; }
            set
            {
                _length = value;
                RaisePropertyChanged("length");
            }
        }

        private int _lineCount;
        public int lineCount
        {
            get { return _lineCount; }
            set
            {
                _lineCount = value;
                RaisePropertyChanged("lineCount");
            }
        }

        private int _speedLimit;
        public int speedLimit
        {
            get { return _speedLimit; }
            set
            {
                _speedLimit = value;
                RaisePropertyChanged("speedLimit");
            }
        }

        private ObservableCollection<Car> _carCollection;
        public ObservableCollection<Car> carCollection
        {
            get { return _carCollection; }
            set
            {
                _carCollection = value;
                RaisePropertyChanged("carCollection");
            }
        }

        public Road(Guid id, int length, int lineCount)
            : base(id)
        {
            _length = length;
            _lineCount = lineCount;
        }
    }
}
